package com.seeyon.apps.kk.manager.datasync;


import java.util.Date;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.seeyon.apps.kk.manager.BaseManager;

public abstract class AbstractDataSyncManager extends BaseManager {
	private static final Log log = LogFactory.getLog(AbstractDataSyncManager.class);
	
	public void start() {
		log.info("=======================开始同步===================="+new Date());
		this.beforeGrabData();
		this.grabData();
		//this.updatesoureData();
		this.addData();
		this.updateData();
		log.info("=======================结束同步===================="+new Date());
	}

	public abstract boolean beforeGrabData();

	public abstract boolean grabData();

	public abstract boolean addData();

	public abstract boolean updateData();

	public abstract boolean deleteData();
	
	//public abstract boolean updatesoureData();

}
